package com.wang.system.service.system;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wang.entity.model.SysUserModel;
import com.wang.entity.system.SysUser;
import com.wang.entity.vo.SysUserVo;

/**
 * @Author wang
 * @Date 2024/9/22 1:28
 * @PackageName:com.wang.system.service.impl.system
 * @ClassName: SysUserService
 * @Description: TODO
 * @Version 1.0
 */
public interface SysUserService  extends IService<SysUser> {

    // 根据用户名查询用户
    SysUserVo findByUsername(String username);

    // 判断用户名是否存在
    int existsByUsername(String username);

    IPage<SysUserVo> queryPageList(SysUserModel sysUser, Page<SysUserVo> page);

    IPage<SysUserVo> queryRecycleList(SysUserModel sysUser, Page<SysUserVo> page);

    SysUser getRecycleById(Long userId);

    void updateRecycleById(SysUser user);
}
